package cn.jiyun.springcloud_feign_api.feign;

import cn.jiyun.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("user")
public interface UserClient {
    /**
     * 这个方法是用来得到对象，根据id
     * @param id 主键
     * @return
     */
    @RequestMapping("{id}")
    public User getUser(@PathVariable Integer id);
}
